package com.example.day15;

/**
 * @author Lenovo
 */
public class HashDemo {
    public static void main(String[] args) {
        Student s1 = new Student("张三", 20);
        System.out.println(s1.hashCode());
        System.out.println(s1.hashCode());
        System.out.println("------");
        Student s2 = new Student("李四", 20);
        System.out.println(s2.hashCode());
        System.out.println("------");
        System.out.println("hello".hashCode());
        System.out.println("world".hashCode());
        System.out.println("hello".hashCode());
        System.out.println("world".hashCode());
        System.out.println("------");
        System.out.println("hello".hashCode());
        System.out.println("world".hashCode());
    }
}
